runtime.m.curg (field)
225 uses
runtime (current package)
cgocall.go#L315: if gp != gp.m.curg {
coro.go#L222: setGNoWB(&mp.curg, gnext)
debugcall.go#L35: if getg() != getg().m.curg {
heapdump.go#L707: casGToWaiting(gp.m.curg, _Grunning, waitReasonDumpingHeap)
heapdump.go#L722: casgstatus(gp.m.curg, _Gwaiting, _Grunning)
malloc.go#L1190: if assistG := getg().m.curg; assistG != nil {
malloc.go#L1850: if assistG.m.curg != nil {
malloc.go#L1851: assistG = assistG.m.curg
malloc.go#L1871: if assistG.m.curg != nil { // TODO(thepudds): do we need to do this?
malloc.go#L1872: assistG = assistG.m.curg
malloc.go#L1954: if mp.curg.stack.lo <= uintptr(ptr) && uintptr(ptr) < mp.curg.stack.hi {
malloc_generated.go#L167: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L332: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L497: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L662: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L827: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L992: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L1157: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L1322: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L1487: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L1652: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L1817: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L1982: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L2147: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L2312: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L2477: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L2642: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L2807: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L2972: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L3137: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L3302: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L3467: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L3632: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L3797: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L3962: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L4127: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L4292: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L4366: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L4448: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L4522: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L4604: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L4678: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L4760: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L4834: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L4916: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L4990: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L5072: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L5146: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L5228: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L5302: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L5384: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L5458: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L5540: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L5614: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L5696: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L5770: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L5852: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L5926: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L6008: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L6082: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L6164: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L6238: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L6320: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L6394: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L6476: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L6550: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L6632: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L6697: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L6768: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L6833: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L6904: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L6969: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L7040: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L7105: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L7176: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L7241: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L7312: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L7377: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L7448: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L7513: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L7584: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L7649: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L7720: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L7785: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L7856: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L7921: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L7992: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L8057: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L8128: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L8193: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L8264: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L8329: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L8400: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L8465: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L8536: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L8601: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L8672: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L8737: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L8808: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L8873: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L8944: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L9009: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L9080: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L9145: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L9216: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L9281: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L9352: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L9417: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L9488: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L9553: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L9624: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L9689: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L9760: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L9825: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L9896: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L9961: if assistG := getg().m.curg; assistG != nil {
malloc_generated.go#L10032: if assistG := getg().m.curg; assistG != nil {
malloc_stubs.go#L117: if assistG := getg().m.curg; assistG != nil {
mbitmap.go#L1946: if gp := getg(); gp.m.curg.stack.lo <= uintptr(p) && uintptr(p) < gp.m.curg.stack.hi {
mbitmap.go#L1949: for u.initAt(gp.m.curg.sched.pc, gp.m.curg.sched.sp, 0, gp.m.curg, 0); u.valid(); u.next() {
mgc.go#L1354: curgp := mp.curg
mgcmark.go#L285: userG := getg().m.curg
mgcmark.go#L1246: gp := getg().m.curg
mgcmark.go#L1403: gp := getg().m.curg
mgcwork.go#L548: gp := getg().m.curg
mprof.go#L548: if gp.m.curg == nil || gp.m.curg == gp {
mprof.go#L551: nstk = gcallers(gp.m.curg, skip, mp.profStack)
mprof.go#L554: if gp.m.curg == nil || gp.m.curg == gp {
mprof.go#L565: mp.profStack[0] = gp.m.curg.sched.pc
mprof.go#L566: nstk = 1 + fpTracebackPartialExpand(skip, unsafe.Pointer(gp.m.curg.sched.bp), mp.profStack[1:])
panic.go#L355: if gp.m.curg != gp {
panic.go#L460: if gp.m.curg != gp {
panic.go#L546: if gp.m.curg != gp {
panic.go#L819: if gp.m.curg != gp {
panic.go#L1579: if gp != gp.m.curg {
panic.go#L1631: if gp != mp.curg {
preempt.go#L107: if mp := getg().m; mp.curg != nil && readgstatus(mp.curg) == _Grunning {
preempt.go#L290: return mp.locks == 0 && mp.mallocing == 0 && mp.preemptoff == "" && mp.p.ptr().status == _Prunning && mp.curg != nil && readgstatus(mp.curg)&^_Gscan != _Gsyscall
preempt.go#L396: if mp.curg != gp {
proc.go#L450: gp := mp.curg
proc.go#L1641: casGToWaitingForSuspendG(getg().m.curg, _Grunning, waitReasonStoppingTheWorld)
proc.go#L1744: casgstatus(getg().m.curg, _Gwaiting, _Grunning)
proc.go#L2113: gp := getg().m.curg
proc.go#L2456: casgstatus(mp.curg, _Gdeadextra, _Gsyscall)
proc.go#L2471: trace.GoCreateSyscall(mp.curg)
proc.go#L2526: mp.curg = gp
proc.go#L2599: casgstatus(mp.curg, _Gsyscall, _Gdeadextra)
proc.go#L2600: mp.curg.preemptStop = false
proc.go#L2628: mp.curg.trace.reset()
proc.go#L3342: mp.curg = gp
proc.go#L4243: setMNoWB(&gp.m.curg.m, nil)
proc.go#L4244: setGNoWB(&gp.m.curg, nil)
proc.go#L5166: gp := getg().m.curg
proc.go#L5195: gp := getg().m.curg
proc.go#L5363: if mp.curg != nil {
proc.go#L5364: newg.labels = mp.curg.labels
proc.go#L5793: if mp.ncgo > 0 && mp.curg != nil && mp.curg.syscallpc != 0 && mp.curg.syscallsp != 0 {
proc.go#L5809: u.initAt(mp.curg.syscallpc, mp.curg.syscallsp, 0, mp.curg, unwindSilentErrors)
proc.go#L5846: if gp != nil && gp.m != nil && gp.m.curg != nil {
proc.go#L5847: tagPtr = &gp.m.curg.labels
proc.go#L5855: if gp.m.curg != nil {
proc.go#L5856: gprof = gp.m.curg
proc.go#L6770: gp := mp.curg
proc.go#L6871: gp := mp.curg
proc.go#L6963: if mp.curg != nil {
proc.go#L6964: print(mp.curg.goid)
proc.go#L7674: if gp := mp.curg; gp == nil || readgstatus(gp)&^_Gscan != _Gsyscall {
runtime2.go#L631: curg *g // current running goroutine
secret.go#L44: sp := mp.curg.sched.sp
sema.go#L148: if gp != gp.m.curg {
signal_unix.go#L703: if !c.sigFromUser() && flags&_SigPanic != 0 && (gp.throwsplit || gp != mp.curg) {
signal_unix.go#L774: if crashing.Load() > 0 && gp != mp.curg && mp.curg != nil && readgstatus(mp.curg)&^_Gscan == _Grunning {
signal_unix.go#L776: goroutineheader(mp.curg)
signal_unix.go#L777: traceback(^uintptr(0), ^uintptr(0), 0, mp.curg)
signal_unix.go#L861: if mp.incgo && gp == mp.g0 && mp.curg != nil {
signal_unix.go#L865: gp = mp.curg
signal_unix.go#L1219: if gp != nil && gp.m != nil && gp.m.curg != nil && !gp.m.isExtraInC && !gp.m.incgo {
stack.go#L1032: if thisg.m.morebuf.g.ptr() != thisg.m.curg {
stack.go#L1033: print("runtime: newstack called from g=", hex(thisg.m.morebuf.g), "\n"+"\tm=", thisg.m, " m->curg=", thisg.m.curg, " m->g0=", thisg.m.g0, " m->gsignal=", thisg.m.gsignal, "\n")
stack.go#L1039: gp := thisg.m.curg
stack.go#L1049: if thisg.m.curg.throwsplit {
stack.go#L1265: if !(gp == getg().m.curg && getg() != getg().m.curg && s == _Grunning) {
stack.go#L1276: if gp == getg().m.curg && gp.m.libcallsp != 0 {
synctest.go#L213: curg := gp.m.curg
synctest.go#L214: gp.m.curg = nil
synctest.go#L216: gp.m.curg = curg
trace.go#L509: me := getg().m.curg
trace.go#L928: getg().racectx = getg().m.curg.racectx
traceback.go#L135: if ourg := getg(); ourg == gp && ourg == ourg.m.curg {
traceback.go#L289: if u.flags&unwindJumpStack != 0 && gp == gp.m.g0 && gp.m.curg != nil && gp.m.curg.m == gp.m {
traceback.go#L297: gp = gp.m.curg
traceback.go#L320: gp = gp.m.curg
traceback.go#L1005: if gp.m != nil && gp.m.throwing >= throwTypeRuntime && gp == gp.m.curg || level >= 2 {
traceback.go#L1116: if mp.throwing >= throwTypeRuntime && gp != nil && (gp == mp.curg || gp == mp.caughtsig.ptr()) {
traceback.go#L1242: if gp.m != nil && gp.m.throwing >= throwTypeRuntime && gp == gp.m.curg || level >= 2 {
traceback.go#L1298: curgp := getg().m.curg
traceback.go#L1734: if panicking.Load() > 0 || getg().m.curg != getg() {
traceback.go#L1753: if panicking.Load() > 0 || getg().m.curg != getg() {
tracebuf.go#L47: if gp == gp.m.curg {
tracebuf.go#L115: if gp == gp.m.curg {
traceevent.go#L44: if gp := tl.mp.curg; gp != nil && !gp.trace.statusWasTraced(tl.gen) && gp.trace.acquireStatus(tl.gen) {
traceruntime.go#L427: gp := getg().m.curg
traceruntime.go#L555: if tl.mp.curg != nil && tl.mp.curg.syscallsp != 0 {
traceruntime.go#L602: if gp := tl.mp.curg; gp != nil && !gp.trace.statusWasTraced(tl.gen) && gp.trace.acquireStatus(tl.gen) {
tracestack.go#L39: gp = mp.curg
tracestack.go#L53: if getg() == gp || mp.curg == gp {
tracestatus.go#L70: if w.mp.p.ptr() == pp && w.mp.curg != nil && readgstatus(w.mp.curg)&^_Gscan == _Gsyscall {
 |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |